import request from '../utils/request'

export function getArticle (data) {
  return request.get('/articleclassify', { params: data })
}

// 获取栏目
export function getArticleClass () {
  return request.get('/client')
}

// 文章详情
export function getArticleById (id) {
  return request.get(`/article/${id}`)
}

// 热点榜
export function getArticleHost () {
  return request.get('/hotspot')
}

// 评论榜
export function getArticleComment () {
  return request.get('/Comment')
}

// 点赞榜
export function getArticleLiked () {
  return request.get('/liked')
}
